// ****************************************************************
// Copyright 2012, Stephan Burguchev
// e-mail: me@sburg.net
// ****************************************************************
// *
using System;
using System.Globalization;
using System.Windows.Controls;

namespace Updater.Wpf.Utils
{
    public class BooleanToVisibilityConverterExtension : ConverterMarkupExtension<BooleanToVisibilityConverterExtension>
    {
        private readonly BooleanToVisibilityConverter converter = new BooleanToVisibilityConverter();

        public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return this.converter.Convert(value, targetType, parameter, culture);
        }

        public override object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return this.converter.ConvertBack(value, targetType, parameter, culture);
        }
    }
}
